<extend name="Public/base"/>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>{:isset($info['id'])?'编辑':'新增'}菜单</h2>
    </div>
    <div class="tab-wrap">
        <ul class="tab-nav nav">
            <li data-tab="tab1" class="current"><a href="javascript:void(0);">基 础</a></li>
        </ul>
        <div class="tab-content">
            <form action="{:U()}" id="for" method="post" class="form-horizontal">
                <!-- 基础 -->
                <div id="tab1" class="tab-pane in tab1">
                    <div class="form-item">
                        <label class="item-label">名称<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" class="text input-large" name="name" value="<?php echo $arr['name']?>"/>
                        </div>
                    </div>
                    <div class="form-item">
                        <label class="item-label">类型<span class="check-tips"></span></label>
                        <div class="controls">
                            <select name="type" id="">
                                <option value="sub_button">底部菜单</option>
                                <option value="click">click</option>
                                <option value="view">view</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-item">
                        <label class="item-label">值<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" class="text input-large" name="content" value="<?php echo $arr['name']?>"/>
                        </div>
                    </div>
                </div>

                <div class="form-item">
                    <input type="hidden" name="id" value="<?php echo $arr['id']?>">
                    <input type="submit" id="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">
                    <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                </div>


            </form>
        </div>
    </div>
</block>

<block name="script">

</block>
